﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using VERKProjectHopur16.Models;

namespace VERKProjectHopur16.Controllers
{
    public class LinkController : ParentController
    {
        DataRepository m_rep = new DataRepository();

        public ActionResult Index()
        {
            return View();
        }

        public ActionResult AllLink()
        {
            var result = from links in m_rep.GetAllLink()
                         where links.Active == true
                         orderby links.LinkTitle ascending
                         select links;
            return View(result);
        }

    }
}
